package yesjava;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;

public class Test5 {
    public static <T> int listTest(List<T> list, T s){
        return  list.indexOf(s);
    }

    public static void main(String[] args) {
        List<String> stringList = Arrays.asList(new String[]{"中国", "美国", "加拿大", "英国", "越南", "缅甸"});
        Collections.shuffle(stringList);


        //System.out.println(listTest(stringList, "中国"));
    }



}
